<?php

declare(strict_types=1);
/**
 * Author: Zane
 * Email: 873934580@qq.com
 * Date: 2022/4/8.
 */

namespace Zane\TableHandle\Components;

use Zane\TableHandle\Base;

class Number extends Base
{
    protected $fieldType = 'integer';

    public function getRules(): array
    {
        return [
            'min' => 'required|integer',
            'max' => 'required|integer',
        ];
    }

    protected function isAllowUpdate(): bool
    {
        return false;
    }
}
